<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>主页</title>
</head>
<body>
<div id="div">
<li v-for="user of users">{{user.username}}</li>
<button @click="find">abc</button>
</div>
</body>
<script src="js/axios-0.18.0.js"></script>
<script src="js/vue.js"></script>
<script>
    new Vue({
        el:"#div",
        data:{
            users:"",
        },
        methods:{
            find(){
                let url = "FindUsersServlet";
                let param={};
                axios.post(url,param).then(resp=>{
                    console.log(resp.data.flag)
                    this.users = resp.data.data;
                })
            }
        }

    })


</script>
</html>